<?php    
    /**
     * 0    = General API exception
     * 10   = Class name is missing
     * 20   = Function name is missing
     * 30   = Data is not an valid array
     * 40   = Access denied
     * 50   = Login failed
     * 60   = No session
     */
    class APIException extends BaseException {        
        public function __construct($message,$code = 0,$class = null,
                Exception $previous = null) {
            parent::__construct($message,$code,$class,$previous);
        }
    }